@extends('shared.master')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-lg-12">
            <ol class="breadcrumb layout-title">
                <li><a href="{{url('user')}}">User</a></li>
                <li class="active" ><i class="fa fa-user fa-fw"></i> Input</li>
            </ol>
                {{PageData::Error()}}

            <div class="col-lg-6">
                {{ Form::open(array('url' => '#')) }}
                <div class="form-group">
                    {{Form::label('username','Username *')}}
                    {{Form::hidden('id',$Model->getId())}}
                    {{Form::text('username',$Model->getUsername(),array('class'=>'form-control'))}}
                </div>
                <div class="form-group">
                    {{Form::label('password','Password')}}
                    {{Form::password('password',array('class'=>'form-control'))}}
                </div>
                <div class="form-group">
                    {{Form::label('repassword','Repeat Password')}}
                    {{Form::password('repassword',array('class'=>'form-control'))}}
                </div>
                <div class="form-group">
                    {{Form::label('email','Email *')}}
                    {{Form::text('email',$Model->getEmail(),array('class'=>'form-control'))}}
                </div>
                <div class="form-group">
                    {{Form::label('name','Name')}}
                    {{Form::text('name',$Model->getName(),array('class'=>'form-control'))}}
                </div>
                <div class="form-group">
                    {{Form::label('group_id','Group')}}
                    {{Form::select('group_id', $GroupCombo, $Model->getGroup()!=null ? $Model->getGroup()->getId() : "",array('class'=>'form-control'))}}
                </div>
                <div class="form-group">
                    {{Form::label('is_enabled','Is Enabled')}}
                    {{Form::select('is_enabled', $IsEnabledCombo, $Model->getIsEnabled(),array('class'=>'form-control'))}}
                </div>
                <p>
                    {{Form::submit('Save',array('class'=>'btn btn-primary',"name"=>"submit"))}}
                    {{Form::button('Close',array('class'=>'btn btn-primary','onClick'=>"location.href='".url('user')."'"))}}
                </p>
                {{ Form::close() }}
            </div>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
</div>
<!-- /.container-fluid -->
    <script>
    
    </script>
@stop